package com.jlu.springsecurityoauth2.service.impl;

import com.jlu.springsecurityoauth2.dao.ConsumerDao;
import com.jlu.springsecurityoauth2.pojo.Consumer;
import com.jlu.springsecurityoauth2.service.MyUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MyUserServiceImpl implements MyUserService {

  @Resource
  public ConsumerDao consumerDao;

  @Override
  public Consumer find(String username) {
    return consumerDao.find(username);
  }
}
